Skip to content

Add support for Azure Linux 4 to chrony, kdump, kill, modprobe, dhclient tools#4570

Open
bhagyapathak wants to merge 2 commits into
mainfrom
bhagya/azlinux4-support
Open

Add support for Azure Linux 4 to chrony, kdump, kill, modprobe, dhclient tools#4570
bhagyapathak wants to merge 2 commits into
mainfrom
bhagya/azlinux4-support

Conversation

@bhagyapathak

Copy link
Copy Markdown
Collaborator

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

Copilot AI review requested due to automatic review settings June 30, 2026 07:53
@github-actions

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

6 test case(s) selected (view run)

Marketplace image: suse sles-15-sp6 gen2 latest

Count
✅ Passed 3
❌ Failed 0
⏭️ Skipped 3
Total 6
Test case details
Test Case Status Time (s) Message
verify_timesync_chrony (lisa_0_2) ✅ PASSED 14.065
verify_timedrift_corrected (lisa_0_3) ✅ PASSED 56.785
verify_dhcp_client_timeout (lisa_0_1) ✅ PASSED 8.815
verify_hyperv_platform_id (lisa_0_5) ⏭️ SKIPPED 59.410 skipped: Cannot find package msr-tools or rdmsr binary
verify_xdp_action_drop (lisa_0_0) ⏭️ SKIPPED 12.407 skipped: Unsupported system: 'SUSE Linux Enterprise Server 15 SP6'
verify_reload_hyperv_modules (lisa_0_4) ⏭️ SKIPPED 8.925 skipped: The following modules were skipped during reload: hv_vmbus, hv_netvsc, hv_storvsc, hv_utils, hv_balloon, hid_h

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates several LISA “tools” to better support Azure Linux 4 (AzureLinux/CBLMariner v4+) behavior and to make a few tool interactions more robust (chrony parsing, kdump tool selection, process killing, and modprobe reload reconnect behavior).

Changes:

  • Treat CBLMariner/AzureLinux v4+ as Fedora-like for kdump and dhclient timeout discovery (NetworkManager path).
  • Improve Chrony tracking validation by loosening the Leap Status match to work across output variants.
  • Make Kill.by_name() resolve PIDs via pgrep first (with pidof fallback), and reset the node connection on modprobe reload retry.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lisa/tools/modprobe.py On reload retry, closes the node connection to force a fresh SSH transport on the next attempt.
lisa/tools/kill.py Switches “kill by name” flow to PID discovery via pgrep, with pidof fallback.
lisa/tools/kdump.py Routes AzureLinux/CBLMariner v4+ to the Fedora kdump implementation; broadens Fedora installer assertion.
lisa/tools/dhclient.py Adds CBLMariner handling for DHCP timeout logic, using NetworkManager for v4+.
lisa/tools/chrony.py Updates leap-status detection to be more tolerant and uses search() instead of match().

Comment thread lisa/tools/kill.py Outdated
Comment thread lisa/tools/dhclient.py Outdated
Comment thread lisa/tools/dhclient.py
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

6 test case(s) selected (view run)

Marketplace image: suse sles-15-sp6 gen2 latest

Count
✅ Passed 3
❌ Failed 0
⏭️ Skipped 3
Total 6
Test case details
Test Case Status Time (s) Message
verify_hpc_over_sriov (lisa_0_5) ⏭️ SKIPPED 0.000 deployment skipped: Requirement mismatch: no feature 'Infiniband' found in capability
verify_reload_hyperv_modules (lisa_0_4) ⏭️ SKIPPED 13.201 skipped: The following modules were skipped during reload: hv_vmbus, hv_netvsc, hv_storvsc, hv_utils, hv_balloon, hid_h
verify_dhcp_client_timeout (lisa_0_1) ✅ PASSED 12.506
verify_xdp_action_drop (lisa_0_0) ⏭️ SKIPPED 21.038 skipped: Unsupported system: 'SUSE Linux Enterprise Server 15 SP6'
verify_timedrift_corrected (lisa_0_3) ✅ PASSED 44.760
verify_timesync_chrony (lisa_0_2) ✅ PASSED 18.182

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread lisa/tools/kill.py Outdated
Comment on lines +25 to +29
# Find PIDs via pgrep (matches by process name), then kill each PID
# individually to avoid the shell interpreting the name as a job spec.
pgrep = self.node.tools[Pgrep]
processes = pgrep.get_processes(process_name)
if processes:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in the latest commit — by_name now tries pidof first for exact-name matching, and only falls back to pgrep when pidof finds nothing.

Comment thread lisa/tools/dhclient.py
Copilot AI review requested due to automatic review settings July 1, 2026 08:49
@bhagyapathak bhagyapathak removed the request for review from Copilot July 1, 2026 08:49
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

✅ AI Test Selection — PASSED

3 test case(s) selected (view run)

Marketplace image: suse sles-15-sp6 gen2 latest

Count
✅ Passed 3
❌ Failed 0
⏭️ Skipped 0
Total 3
Test case details
Test Case Status Time (s) Message
verify_timesync_chrony (lisa_0_2) ✅ PASSED 19.904
verify_dhcp_client_timeout (lisa_0_1) ✅ PASSED 12.317
verify_floppy_module_is_blacklisted (lisa_0_0) ✅ PASSED 10.339

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants